<style>
    .panel-header, .panel-body {
        border-width: 0px;
    }

    .datagrid, .combo-p {
        border: solid 1px #D4D4D4;
    }

    .panel-title {
        cursor: pointer
    }

    .inlineblock {
        margin-top: 10px;
    }

    .inlineblock div {
        display: inline-block;
    }

    .inlineblock div label {
        display: inline-block;
        top: 5px;
    }

    .newform {
        width: 70%;
    }

    .editform {
        width: 70%;
    }

    .searchClass {
        margin-left: 5%;
        margin-top: 1%;
    }

    .searchClass label {        width: 9%;
        font-weight: bold;
        text-align: center;
    }

    #Search {
        float: right;
        margin-right: 4%;
        width: 14%;
    }
    .ssss{
        color: #FFF;padding:5px 15px;background-color:#3F51B5;
        position:relative;top: -15px;left: 20px;
    }
    .ssss:hover{
        color: #FFF;
        text-decoration: none;
    }
</style>
<div class="row">
    <div id="breadcrumb" class="col-xs-12" style="margin-bottom: 10px">
        <a href="#" class="show-sidebar"> <i class="fa fa-bars"></i>
        </a>
        <ol class="breadcrumb pull-left">
            <li><a href="#">提现管理</a></li>
            <li><a href="#">提现管理</a></li>
        </ol>
    </div>
</div>
<div class="row">
    <div class="col-xs-12">
        <div class="box">
            <div class="box-header">
                <div class="box-name">
                    <i class="fa fa-clipboard"></i> <span>提现管理</span>
                </div>
                <div class="box-icons">
                    <a class="collapse-link"> <i class="fa fa-chevron-up"></i>
                    </a> <a class="expand-link"> <i class="fa fa-expand"></i>
                </a> <a class="close-link"> <i class="fa fa-times"></i>
                </a>
                </div>
                <div class="no-move"></div>
            </div>
            <div class="box-content table-responsive" style="padding-top: 15px;">

                <div class="panel" style="background-color: #DFE1EB; height: auto;">
                    <div class="panel-heading" role="tab" style="width: 25%;float: left;">
                        <h4 class="panel-title">提现中：{$many} 笔</h4>
                    </div>
                    <div class="panel-heading" role="tab" style="width: 25%;float: left;">
                        <h4 class="panel-title">人民币提现中：¥{$rmb}</h4>
                    </div>
                    <div class="panel-heading" role="tab" style="width: 50%;float: left;">
                        <h4 class="panel-title">以太币提现中：{$ytb}</h4>
                    </div>
                </div>
                <div class="box-content table-responsive" style="padding-top: 15px">
                    <!--<div class="panel panel-default" style="border: 1px solid #CCC; height: auto;">-->
                        <!--<div class="panel-heading" role="tab" id="headingOne">-->
                            <!--<h4 class="panel-title" data-toggle="collapse" data-target="#collapseForAdd">-->
                                <!--功能面板 <span class="fa fa-chevron-down" style="float: right"></span>-->
                            <!--</h4>-->
                        <!--</div>-->

                        <!--<div id="collapseForAdd" class="panel-collapse collapse in" role="tabpanel"-->
                             <!--aria-labelledby="headingOne">-->
                            <!--<div class="panel-body">-->
                                <!--<div class="container-fluid" style="margin-top: 20px;">-->
                                    <!--&lt;!&ndash;操作&ndash;&gt;-->
                                    <!--<div id="operationpanel" class="col-xs-12">-->
                                        <!--<div class="col-xs-12 btn-menu-top-minus">-->
                                            <!--<button class="btn btn-primary btn-sm addbook">-->
                                                <!--<i class="fa fa-file-o"></i> 新增用户-->
                                            <!--</button>-->
                                            <!--<button class="btn btn-primary btn-sm editbook">-->
                                                <!--<i class="fa fa-file-text"></i> 修改-->
                                            <!--</button>-->
                                            <!--&lt;!&ndash;<button class="btn btn-danger btn-sm removebook">&ndash;&gt;-->
                                            <!--&lt;!&ndash;<i class="fa fa-trash-o"></i> 删除&ndash;&gt;-->
                                            <!--&lt;!&ndash;</button>&ndash;&gt;-->
                                        <!--</div>-->
                                    <!--</div>-->

                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                    <!--</div>-->
                    <!--主信息面板 S-->
                    <div class="panel panel-default" style="border: 1px solid #CCC;">
                        <div class="panel-heading" role="tab" id="headingTwo">
                            <h4 class="panel-title" data-toggle="collapse" data-target="#collapseForCourseTable">
                                提现管理<span class="fa fa-chevron-down" style="float: right"></span>
                            </h4>
                        </div>
                        <div id="collapseForCourseTable" class="panel-collapse collapse in" role="tabpanel"
                             aria-labelledby="headingTwo">
                            <div class="panel-body" style="overflow: hidden;">
                                <!--搜索区域-->
                                <div class="searchClass row">
                                    <div class="col-xs-12">
                                        <label>用户名</label>
                                        <input class="SearchForm form-control" type="text" id="user_username"/>
                                        <label>流水号</label>
                                        <input class="SearchForm form-control" type="text" id="water_number"/>
                                        <label>状态</label>
                                        <select class="SearchForm form-control" id="water_out_status" style="height:32px;">
                                            <option value="">所有</option>
                                            <option value="1">提现成功</option>
                                            <option value="2">审核中</option>
                                            <option value="3">提现失败</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="searchClass row">
                                    <div class="col-xs-12">
                                        <label>日期</label>
                                        <input class="SearchForm form-control" type="text" id="start" readonly/>
                                        至&nbsp;&nbsp;&nbsp;
                                        <input class="SearchForm form-control" type="text" id="end" readonly/>
                                    </div>
                                </div>
                                <button id="Search" class="btn btn-primary btn-xs" style="height: 30px;margin-left: 30px">
                                    <i class="fa fa-search"></i>&nbsp;&nbsp;搜索
                                </button>
                                <button id="Reset" class="btn btn-primary btn-sm" style="width:120px;float: right;">
                                    清空查询条件
                                </button>
                            </div>
                            <table id="datatable_adminpayinfo" data-size="15" style="width: 100%">
                            </table>
                        </div>
                    </div>
                    <!--主信息面板 E-->
                </div>
            </div>
        </div>
    </div>
</div>
<script src="static/js/ajax/admin_pay.js"></script>
<script>
    function tododo(b) {
        var wid = b.name;
        $.ajax({
            url: 'admin/Pay/show_how',
            type: 'POST',
            data:'wid='+wid,
            dataType: 'HTML',//返回的数据类型
            success: function (addhtml) {
                var content = addhtml;
                //弹出添加框
                $.TeachDialog({
                    modalId: null,
                    animation: null,
                    title: '审核',
                    content: content,
                    showCloseButton: true,
                    showCloseButtonName: '关闭',
                    CloseButtonAddFunc: function () {
                    },
                    otherButtons: ['确定'],
                    otherButtonStyles: ['btn-primary'],
                    clickButton: function (sender, modal, index) {
                        var type = $('#type').val();
                        var remark = $('#remark').val();
                        var wid = $('#wid').val();
                        var userid = $('#userid').val();
                        $.ajax({
                            url: 'admin/Pay/yesOrNo',
                            data: 'type='+type+'&remark='+remark+'&wid='+wid+'&userid='+userid,
                            type: 'POST',
                            dataType: 'JSON',
                            success: function (returnData) {
                                if (returnData.status != 200) {
                                    $.TeachDialog({
                                        content: returnData.msg,

                                    });
                                } else {
                                    modal.modal('hide');
                                    $.TeachDialog({
                                        content: returnData.msg
                                    });
                                    $('#datatable_adminpayinfo').datagrid('reload');
                                }
                            },
                            error: function () {
                                $.TeachDialog({
                                    content: '系统异常，请联系管理员',
                                });
                            },

                        });

                    },
                });
            },
            error: function () {
                $.TeachDialog({
                    content: '获取数据失败，无法进行修改',
                });
                return;
            }
        });
    }
    //
    function toseesee(b) {
        var wid = b.name;
        $.ajax({
            url: 'admin/Pay/seewaterout',
            type: 'POST',
            data:'wid='+wid,
            dataType: 'HTML',//返回的数据类型
            success: function (addhtml) {
                content = addhtml;
                //弹出添加框
                $.TeachDialog({
                    modalId: null,
                    animation: null,
                    title: '查看',
                    content: content,
                    showCloseButton: true,
                    showCloseButtonName: '关闭',
                    CloseButtonAddFunc: function () {
                    }
                });
            },
            error: function () {
                $.TeachDialog({
                    content: '获取数据失败，无法进行修改',
                });
                return;
            }
        });
    }
</script>